<?php
 include"conn.php";
 
 $id=isset($_GET['id'])?$_GET['id']:0;
 $sql="delete from notes where id=$id";
 $rs=$mylink->query($sql);
if ($rs)
{
    header("location:index.php"); 
}
 else 
 {
    header("location:index.php"); 
}
